package com.lce.beans;

import java.util.Date;

public class Leave {
    private int lid;
    private String startTime;
    private String endTime;
    private int typeId;
    private int total;
    private int uid;
    private String status;
    private String approvalId;
    private String applyTime;
    private User user;
    private LeaveType leaveType;

    public Leave() {
    }

    public Leave(int lid, String startTime, String endTime, int typeId, int total, int uid, String status, String approvalId, String applyTime, User user, LeaveType leaveType) {
        this.lid = lid;
        this.startTime = startTime;
        this.endTime = endTime;
        this.typeId = typeId;
        this.total = total;
        this.uid = uid;
        this.status = status;
        this.approvalId = approvalId;
        this.applyTime = applyTime;
        this.user = user;
        this.leaveType = leaveType;
    }

    /**
     * 获取
     * @return lid
     */
    public int getLid() {
        return lid;
    }

    /**
     * 设置
     * @param lid
     */
    public void setLid(int lid) {
        this.lid = lid;
    }

    /**
     * 获取
     * @return startTime
     */
    public String getStartTime() {
        return startTime;
    }

    /**
     * 设置
     * @param startTime
     */
    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    /**
     * 获取
     * @return endTime
     */
    public String getEndTime() {
        return endTime;
    }

    /**
     * 设置
     * @param endTime
     */
    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    /**
     * 获取
     * @return typeId
     */
    public int getTypeId() {
        return typeId;
    }

    /**
     * 设置
     * @param typeId
     */
    public void setTypeId(int typeId) {
        this.typeId = typeId;
    }

    /**
     * 获取
     * @return total
     */
    public int getTotal() {
        return total;
    }

    /**
     * 设置
     * @param total
     */
    public void setTotal(int total) {
        this.total = total;
    }

    /**
     * 获取
     * @return uid
     */
    public int getUid() {
        return uid;
    }

    /**
     * 设置
     * @param uid
     */
    public void setUid(int uid) {
        this.uid = uid;
    }

    /**
     * 获取
     * @return status
     */
    public String getStatus() {
        return status;
    }

    /**
     * 设置
     * @param status
     */
    public void setStatus(String status) {
        this.status = status;
    }

    /**
     * 获取
     * @return approvalId
     */
    public String getApprovalId() {
        return approvalId;
    }

    /**
     * 设置
     * @param approvalId
     */
    public void setApprovalId(String approvalId) {
        this.approvalId = approvalId;
    }

    /**
     * 获取
     * @return applyTime
     */
    public String getApplyTime() {
        return applyTime;
    }

    /**
     * 设置
     * @param applyTime
     */
    public void setApplyTime(String applyTime) {
        this.applyTime = applyTime;
    }

    /**
     * 获取
     * @return user
     */
    public User getUser() {
        return user;
    }

    /**
     * 设置
     * @param user
     */
    public void setUser(User user) {
        this.user = user;
    }

    /**
     * 获取
     * @return leaveType
     */
    public LeaveType getLeaveType() {
        return leaveType;
    }

    /**
     * 设置
     * @param leaveType
     */
    public void setLeaveType(LeaveType leaveType) {
        this.leaveType = leaveType;
    }

    public String toString() {
        return "Leave{lid = " + lid + ", startTime = " + startTime + ", endTime = " + endTime + ", typeId = " + typeId + ", total = " + total + ", uid = " + uid + ", status = " + status + ", approvalId = " + approvalId + ", applyTime = " + applyTime + "}";
    }
}
